@import "stars";

@font-face {
  font-family: "JetBrains Mono Medium";
  src: url("@/assets/fonts/JetBrainsMono-Medium.ttf");
}

@font-face {
  font-family: "MiSans-Medium";
  src: url("@/assets/fonts/MiSans-Medium.ttf");
}
::-webkit-scrollbar {
  width: 8px;
  height: 10px;
  background-color: transparent;

}
::-webkit-scrollbar-track-piece {
  background-color: rgba(0, 0, 0, 0);
  border-radius: 0;
}
::-webkit-scrollbar-thumb {
  height: 50px;
  background-image: linear-gradient(
                  rgba(173, 15, 15, 0),
                  rgb(119, 153, 250),
                  rgba(173, 15, 15, 0)
  );
  border-radius: 6px;
  filter: alpha(opacity = 10);
  -moz-opacity: 0.1;
  -khtml-opacity: 0.1;
  opacity: 0.1;
}
*::-webkit-scrollbar-track{
  //background-color: rgba(255,255,255,.3);  //设置背景透明
  display: none;
}
::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(
                  rgba(255, 255, 255, 0),
                  rgb(72, 120, 253),
                  rgba(255, 255, 255, 0)
  );
}
* {
  scrollbar-color: #c8d2e0 #f3f4f9;
  scrollbar-width: thin;
  font-family: MiSans-Medium, JetBrains Mono Medium, serif;
}

html{
  margin-right:calc(100% - 100vw )
}
[class^=vs] *{
  font-family: MiSans-Medium, JetBrains Mono Medium, serif !important;
}
.fade-enter-active {
  animation: fadeIn 0.5s 1 ease;
}

.fade-leave-active {
  animation: fadeOut 0.5s 1 ease;
}
.fe-color-title{
  font-size: 20px;
  position: relative;
  padding-left:20px;
  box-sizing: border-box;
  transition: all .3s ease-in-out;
  box-sizing: border-box;
  margin-bottom: 12px;
  height: 32px;
  &::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 4px;
    height: 100%;
    background: rgb(var(--vs-primary));
    transition: all .3s ease-in-out;
  }
  &::after{
    content: "";
    position: absolute;
    left: 0;
  }
  &:hover{
    padding-bottom: 4px;
    //transform: skew(-16deg);
    transform-origin: 50% 50%;
    &::before{
      transform: rotate(180deg);
      left: 16px;
      transform-origin: 50% 50%;
      height: 50%;
      top: 25%;
    }
    &::after{
      animation: hover_border 0.6s;
      animation-fill-mode: forwards;
    }
  }
}
@keyframes hover_border {
  0% {
    content: "";
    position: absolute;
    display: flex;
    margin-left: -5px;
    bottom: 0;
    right: auto;
    height: 4px;
    width: 0;
    background: rgb(var(--vs-primary));
  }

  100% {
    content: "";
    position: absolute;
    display: flex;
    margin-left: -5px;
    bottom: 0;
    right: auto;
    height: 4px;
    width: 100%;
    background: rgb(var(--vs-primary));
  }
}